package Book01.User;

import Book01.Operation.*;

import javax.sound.midi.Soundbank;
import java.util.Scanner;

public class Admin  extends User {

    public Admin(String name) {
        super(name);
        iOperations = new IOperation[]{
                new ExitOperation(),
                new AddOperation(),
                new DelOperation(),
                new FindOperation(),
                new ShowOperation()
        };
    }

    @Override
    public int menu() {
        Scanner scanner = new Scanner(System.in);
        System.out.println("管理员菜单");
        System.out.println("你好" + this.name + "请输入你的操作");
        System.out.println("0.退出系统");
        System.out.println("1.增加操作");
        System.out.println("2.删除操作");
        System.out.println("3.查找操作");
        System.out.println("4.显示操作");
        int choice = scanner.nextInt();
        return choice;
    }
}
